const express = require("express");
const app = express();

//静态资源
app.use("/img",express.static("src/imgs"))

//设置参数编码
const parser = require("body-parser");
app.use(parser.json());

//配置路由
const router = require("./router");
app.use(router);


app.listen(80,()=>{
    console.log("sever started at:http://localhost");
})